import request from "@/utils/request";
import qs from "qs";

export const getAuthApi = (params) => {
  return request({
    url: "auth/index.jsp",
    method: "get",
    params,
  });
};

export const postAuthApi = (params) => {
  return request({
    url: "auth/create.jsp",
    method: "post",
    data: qs.stringify(params),
  });
};

export const deleteAuthApi = (params) => {
  return request({
    url: "/auth/delete.jsp",
    method: "delete",
    params,
  });
};

export const putAuthApi = (params) => {
  return request({
    url: "auth/update.jsp",
    method: "put",
    data: qs.stringify(params),
  });
};

export const getAuthMenuApi = (params) => {
  return request({
    url: "auth/menu.jsp",
    method: "get",
    params,
  });
};
